package com.ajhlp.spring_modules.db.multiSource;
/**
 * 数据源配置保存失败异常
 * @author ajhlp
 *
 */
public class DBSourceMetaSaveFailureException extends RuntimeException {

	/**
	 * 
	 */
	private static final long serialVersionUID = -2162346908989000566L;

	//配置对象
	private Object dbSourceMetaObj;

	/**
	 * 获得保存失败的数据源配置对象
	 * @return
	 */
	public Object getDbSourceMetaObj() {
		return dbSourceMetaObj;
	}
	
	public DBSourceMetaSaveFailureException(Object dbSourceMetaObj, String reason){
		super(reason);
		this.dbSourceMetaObj = dbSourceMetaObj;
	}
}
